package com.chagee.store.operation.server.redis.service;

import com.chagee.store.operation.server.redis.model.RedissionLock;

import java.util.List;

public interface RedisLockService {

	void lockWaitAMoment(RedissionLock redissionLock, Long millisecond);

	void lockElseThrowError(List<? extends RedissionLock> redissionLocks, String errorMsg);

	void lockElseThrowError(RedissionLock redissionLock, String errorMsg);

	void unLock(RedissionLock redissionLock);

	void unLock(List<? extends RedissionLock> redissionLocks);
}
